﻿using System;
using System.Collections.Generic;
using System.Linq;

namespace WLCompiler.Helpers.Extensions
{
    public static class EnumerableExtensions
    {
        public static Type[] FromArgsTypes(this IEnumerable<SemanticAnalyze.Variable> @params)
        {
            return @params.Select(variable => variable.Type).ToArray();
        }
    }
}
